<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>out内置对象的test</title>
</head>
<body>
<!-- 
Out 内置对象主要用来向客户端输出各种类型的数据，同时还可以管理应用服务器上的输出缓冲区。所以 out 内
置对象的方法是向客户端输出数据和管理缓冲区； 底层 javax.servlet.jsp.JspWriter 抽象类
 -->
<h3>内置对象out空间使用情况：</h3>
<%
	int totalBufferSize = out.getBufferSize();
	int remainBufferSize = out.getRemaining();
	int usedBufferSize = totalBufferSize - remainBufferSize;
	out.println("total:"+totalBufferSize+"<br>");
	out.println("remain:"+remainBufferSize+"<br>");
	out.println("used:"+usedBufferSize+"<br>");
%>
</body>
</html>